<ion-header>
  <ion-toolbar color="primary">
    <ion-buttons slot="start">
      <ion-back-button></ion-back-button>
    </ion-buttons>
    <ion-title *ngIf="itype == '1'">企业动态</ion-title>
    <ion-title *ngIf="itype == '2'">优惠政策</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content padding>
  <!--图片轮播
  <div class="sideContent">
    <ion-slides pager="true" loop="true" autoplay="3000">
            <ion-slide *ngFor="let item of slideItems">
                <img src="{{item.cpicpath}}" (click)="toWebView(item.cskiplinks,item.ccontent)"/>
            </ion-slide>
        </ion-slides>
  </div>-->
  <ion-refresher (ionRefresh)="doDownRefresh($event)">
    <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新"
      refreshingSpinner="circles" refreshingText="正在加载数据...">
    </ion-refresher-content>
  </ion-refresher>

  <ion-list>
    <ion-item *ngIf="items.length == 0">
      <span style="width:200px;text-align:center;color:Red;margin: 0px auto">暂无数据</span>
    </ion-item>
    <ion-item *ngFor="let item of items;let i=index" (click)="goToDetails(item.iid)">
      {{i+1}}.{{item.ctitle}} <p slot="end">{{item.dcreator |
        date:"yyyy-MM-dd"}}</p>
    </ion-item>
  </ion-list>

  <ion-infinite-scroll (ionInfinite)="doUpRefresh($event)">
    <ion-infinite-scroll-content loadingText="正在加载数据" loadingSpinner="bubbles"></ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
